package com.lazason.wib4android;

import java.util.HashMap;
import java.util.Map;

import android.util.Log;

import weibo4andriod.Status;

public class Util {
   public static Map status2Map(Status status){
		Map<String, Object> map = new HashMap<String, Object>();

		map.put("profile", status.getUser().getProfileImageURL()
				.toString());
		map.put("weibo", status.getText());
		map.put("username", status.getUser().getName());
		map.put("id", status.getUser().getId());
		map.put("picture", status.getThumbnail_pic());
		map.put("bmiddle_pic", status.getBmiddle_pic());
		map.put("original_pic", status.getOriginal_pic());
		map.put("in_reply_to_status_id ", status.getInReplyToStatusId());
		map.put("in_reply_to_user_id", status.getInReplyToUserId());
		map.put("in_reply_to_screen_name", status.getInReplyToScreenName());
		if(status.getRetweetDetails()!=null){
			map.put("retweetedText", status.getRetweetDetails().getText());
			map.put("retweetedOriginalPic", status.getRetweetDetails().getOriginal_pic());
			map.put("retweetedThumbnailPic", status.getRetweetDetails().getThumbnail_pic());
			map.put("retweetedUsername", status.getRetweetDetails().getUser().getScreenName());
		}
		
		return map;
   }
}
